const name = '张三';
const age = '12';
let arr = [1, 2, 3, 4];
// 箭头函数最简便的书写形式
// let newArr = arr.fiter( item => item === 1)
arr.forEach((item, index) => {
  console.log(index, item);
})
